package cn.yh.shop.product.service.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.yh.shop.product.dao.GoodsDao;
import cn.yh.shop.product.model.Goods;
import cn.yh.shop.product.service.IGoodsService;
@Service
public class GoodsServiceImpl implements IGoodsService {
	/**
	 * 商品数据访问对象
	 */
	@Autowired
	private GoodsDao goodsdao;
	
	@Override
	public List<Goods> getGoodsByCondi(HashMap<String,Object> map) {
		return goodsdao.getGoodsByCondi(map);
	}

	@Override
	public Goods getGoodsByCondit(HashMap map) {
		return goodsdao.getGoodsByCondit(map);
	}
	@Override
	public List<Integer> getGoodsBySaleCount(){
		return goodsdao.getGoodsBySaleCount();
	}
}
